package com.wx.mall.operate.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SeckillActivitiesDto {
    @ApiModelProperty(value = "当前页")
    Integer pageNum;

    @ApiModelProperty(value = "条数")
    Integer pageSize;

    @ApiModelProperty(value = "ID编号")
    private Long id;

    @ApiModelProperty(value = "活动标题")
    private String activityName;

    @ApiModelProperty(value = "活动状态")
    private Integer activityStatus;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "活动上下架")
    private Integer activityType;

    @ApiModelProperty(value = "软删除")
    private Integer activityDelete;

    @ApiModelProperty(value = "排序")
    int sort;
}
